/*
 * Copyright 2012 NJUT  qixiaobo. All rights reserved.
 */
package com.fujitsu.nanjing.tieba.model;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.fujitsu.nanjing.tieba.dao.CoreUserDAOImpl;
import com.ibatis.sqlmap.client.SqlMapClient;

/**
 * User.java
 * 
 * @author Qixiaobo-win8
 */
@Repository
public class User extends CoreUserDAOImpl {
	@Resource
	private SqlMapClient sqlMapClient;
	@PostConstruct
	public void initSqlMapClient() {
		super.setSqlMapClient(sqlMapClient);
	}
	public int countMonthNewUsers() {
		return (Integer) getSqlMapClientTemplate().queryForObject(
				"core_user.countMonthNewUsers");
	}
}
